﻿@using MvcCms.Service.Helpers
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>@ViewBag.Title</title>

    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="/RazorThemes/simple/wlwmanifest.xml" />    
    <meta name="keywords" content="mvccms simple layout" />

    <link rel="shortcut icon" href="/RazorThemes/simple/images/favicon.ico" />
    <link href="@Url.Content("/RazorThemes/simple/css/Site.css")" rel="stylesheet" type="text/css" />
    <link href="/RazorThemes/simple/css/superfish.css" rel="stylesheet" type="text/css" />
    <link href="/RazorThemes/simple/css/superfish-navbar.css" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("/Scripts/jquery-1.4.1.min.js")" type="text/javascript"></script>    
    <script src="@Url.Content("/RazorThemes/simple/Scripts/MvcCms.js")" type="text/javascript"></script>
    <script src="@Url.Content("/Scripts/cookies.js")" type="text/javascript"></script>
    <script src="@Url.Content("/Scripts/json2005.js")" type="text/javascript"></script>
    <script src="@Url.Content("/Scripts/hoverIntent.js")" type="text/javascript"></script>
    <script src="@Url.Content("/Scripts/superfish.js")" type="text/javascript"></script>
    @RenderSection("HtmlHead", false)
</head>
<body>
    <div class="themeHolder">
        <!-- header starts-->
        <div class="headerZone">
            <div class="logoHolder">
                <a href="/"><img alt="logo" src="/RazorThemes/simple/images/logo.jpg" /></a>
            </div>
            <div class="topnavHolder">
                <ul class="sf-menu sf-navbar">
                    @Html.Partial("ControlsNav/TopNavControl", Html.GetTopNav())
                </ul>            
            </div>
            <div class="clearFloats"> </div>
        </div>        
        <!-- content starts -->
        <div class="contentZone">
            @RenderBody()
        </div>
        <!-- right-column-top starts -->
        <div class="rightUserContextZone">
            <div class="sidebarContainer">
            @{
                //Subpages for the content category
                @Html.Partial("ControlsSidebar/CatSidebar")
                //login / logout
                @Html.Partial("ControlsSidebar/UserSidebar")
                if (Roles.IsUserInRole("PortalAdmin"))
                {
                    @Html.Partial("ControlsSidebar/PortalAdminSidebar")
                } 
                if (Roles.IsUserInRole("Admin"))
                {
                    @Html.Partial("ControlsSidebar/AdminSidebar")
                }
                if (Roles.IsUserInRole("Editor"))
                {
                    @Html.Partial("ControlsSidebar/EditorSidebar")
                }
                if (Roles.IsUserInRole("Contributor"))
                {
                    @Html.Partial("ControlsSidebar/ContributorSidebar")
                }            
            }
            </div>
        </div>
        <!-- right-column-bottom starts -->
        <div class="rightPageSiteZone">            
            <div class="sidebarContainer">
                @RenderSection("SideBar", false)
                <div id="modules-forum" class="modules-sidebar">
                </div>
                <div id="modules-sidebar" class="modules-sidebar">
                </div>
                <div id="modules-rss" class="modules-sidebar">
                </div>
                <div id="twitterFeed"></div>
            </div>
        </div>
        <div class="clearFloats"> </div>
        <!-- footer starts -->
        <div class="footerZone">
            @Html.Partial("_Footer")
        </div>
    </div>
    @RenderSection("ScriptContent", false)
    <script type="text/javascript">
        $(document).ready(function () {
            $("ul.sf-menu").superfish({
                pathClass: 'active'
            });
        });
    </script>
</body>
</html>
